package com.ruoyi.inventory.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 库存预警记录对象 inventory_warning_log
 * 
 * @author ruoyi
 * @date 2025-06-17
 */
public class InventoryWarningLog extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 记录ID */
    private Long id;

    /** 商品ID */
    @Excel(name = "商品ID")
    private Long productId;

    /** 当前库存 */
    @Excel(name = "当前库存")
    private Long currentQty;

    /** 预警类型：1-低于下限 2-高于上限 */
    @Excel(name = "预警类型：1-低于下限 2-高于上限")
    private Long warningType;

    /** 预警时间 */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @Excel(name = "预警时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date warningTime;

    /** 状态：0-未处理 1-已处理 */
    @Excel(name = "状态：0-未处理 1-已处理")
    private Long status;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setProductId(Long productId) 
    {
        this.productId = productId;
    }

    public Long getProductId() 
    {
        return productId;
    }

    public void setCurrentQty(Long currentQty) 
    {
        this.currentQty = currentQty;
    }

    public Long getCurrentQty() 
    {
        return currentQty;
    }

    public void setWarningType(Long warningType) 
    {
        this.warningType = warningType;
    }

    public Long getWarningType() 
    {
        return warningType;
    }

    public void setWarningTime(Date warningTime) 
    {
        this.warningTime = warningTime;
    }

    public Date getWarningTime() 
    {
        return warningTime;
    }

    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("productId", getProductId())
            .append("currentQty", getCurrentQty())
            .append("warningType", getWarningType())
            .append("warningTime", getWarningTime())
            .append("status", getStatus())
            .toString();
    }
}
